package com.jeeplus.modules.web.mapper;

import com.jeeplus.core.persistence.BaseMapper;
import com.jeeplus.core.persistence.annotation.MyBatisMapper;
import com.jeeplus.modules.web.entity.YjMahjongHallRoom;
import org.apache.ibatis.annotations.Param;

/**
 * 棋牌室房间MAPPER接口
 * @author liangbing
 * @version 2021-03-11
 */
@MyBatisMapper
public interface YjMahjongHallRoomMapper extends BaseMapper<YjMahjongHallRoom> {

    Long count(YjMahjongHallRoom yjMahjongHallRoom);

    Long isDuplicate(YjMahjongHallRoom yjMahjongHallRoom);

    Integer checkQrcodeIsDuplicate(YjMahjongHallRoom yjMahjongHallRoom);

    YjMahjongHallRoom getRoomByQrcode(@Param("roomQrcode") String roomQrcode, @Param("delFlag") String delFlag);

    void deleteRoom(@Param("roomId") String roomId);
}
